package com.yang.dreammanage.service.impl;


import com.yang.dreammanage.dao.impl.AuthenticationDaoImpl;
import com.yang.dreammanage.pojo.User;
import com.yang.dreammanage.service.AuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthenticationServiceImpl implements AuthenticationService {

    @Autowired
    AuthenticationDaoImpl authenticationDao;

    @Override
    public String register(User user) {
        return authenticationDao.register(user);
    }

    @Override
    public String login(User user) {
        return authenticationDao.login(user);
    }
}
